﻿<div id="section">
<p>恭喜你！<span id="join_name"><?php echo $_success['name']; ?></span>你已经成功报名！</p>
<p>请加入如下微信号，隨時留意我们的面试通知：</p>
<p>
	<img src="./images/qrcode.png" alt="搜索公众帐号微信sziitcr，关注纳新最新通知！" class="qrcode" title="快扫描我！~~~"/>
</p>
<p>也可以留意報名填写的郵箱：<span id="join_email"><?php echo $_success['mail']; ?></span>~</p>
</div>
<?php
require_once(dirname(dirname(__FILE__)).'//include//class_com_mailer.php'); // a mysql class.
$name = $_success['name'];
$ip = $_success['ip'];
$smtpserver = "smtp.qq.com";//SMTP服务器 
$smtpserverport = 25;//SMTP服务器端口 
$smtpusermail = "no-reply@sxisa.com";//SMTP服务器的用户邮箱 
$smtpemailto = $_success['mail'];//发送给谁 
$smtpuser = "2696740869";//SMTP服务器的用户帐号 
$smtppass = "***********";//SMTP服务器的用户密码 
$mailsubject = "欢迎加入创软俱乐部";//邮件主题 
$mailbody = <<<MAIL
<div id="header">
<p style="text-align:center;"><img src="http://join.sxisa.com/images/mail_logo.png" alt="创软俱乐部" width="400" height="99"/></p>
</div>
<div id="section" style='width:700px;margin:0 auto;font: 100% "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "Helvetica Neue", "BBAlpha Sans", "S60 Sans", Arial, "sans-serif";border-top:3px solid #BD2D30;padding:10px;'>
<p>恭喜你！<span id="join_name" style="display:block;color:#a40000;font-size:300%;margin:5% 0;text-align:center;">$name</span>你已经成功报名！</p>
<p>请加入如下微信号，隨時留意我们的面试通知：</p>
<p style="text-align:center;"><img src="http://join.sxisa.com/images/qrcode.png" alt="搜索公众帐号微信sziitcr，关注纳新最新通知！" class="qrcode" title="快扫描我！~~~" width="700" height="388"/></p>
</div>
<div id="footer"  style='width:700px;margin:0 auto;font: 12px "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "Helvetica Neue", "BBAlpha Sans", "S60 Sans", Arial, "sans-serif";border-top:3px solid #BD2D30;padding:10px;text-align:center;'>
<p style="line-height:15px;"><img src="http://join.sxisa.com/images/weibo_icon.png" alt="" align="top"/> <span style="color:black;"> <a href="http://weibo.com/szisa" target="_blank"><span style="color:black;">关注微博</span></a> | <img src="http://join.sxisa.com/images/zan_icon.png" alt="" align="top"/> <a href="https://www.facebook.com/sxisa" target="_blank"> <span style="color:black;">赞Facebook</span></a> | <img src="http://join.sxisa.com/images/mail_icon.png" alt="" align="top"/> <a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=AHN6aXNhQGZveG1haWwuY29t" target="_blank"><span style="color:black;">联系我们</span></a></p>
</div>
MAIL;
$mailtype = "HTML";//邮件格式（HTML/TXT）,TXT为文本邮件 

@$smtp = new smtp($smtpserver,$smtpserverport,true,$smtpuser,$smtppass);//这里面的一个true是表示使用身份验证,否则不使用身份验证. 
$smtp->debug = false;//是否显示发送的调试信息 
@$smtp->sendmail($smtpemailto, $smtpusermail, "创软俱乐部",$mailsubject, $mailbody, $mailtype); 
$mailbody = "新增报名：".$name.",Email：".$smtpemailto.",IP：".$ip;
@$smtp->sendmail("contact@sxisa.com", $smtpusermail, "创软俱乐部",$mailsubject, $mailbody, $mailtype); 
?>